#ifndef _SRV_TRIGGERS_RUNNER_HPP_
#define _SRV_TRIGGERS_RUNNER_HPP_

#include <vector>

/*---------------------------------------------------------------------------*/

namespace ProjectManager
{
	struct Trigger;
}

/*---------------------------------------------------------------------------*/

namespace Server {

	class TimeTrigger;

/*---------------------------------------------------------------------------*/

class TriggersRunner
{
/*---------------------------------------------------------------------------*/

public:

/*---------------------------------------------------------------------------*/

	TriggersRunner();

	~TriggersRunner();

	void runTrigger( const ProjectManager::Trigger& _trigger );

	void onTrigger();

/*---------------------------------------------------------------------------*/

private:

/*---------------------------------------------------------------------------*/

	std::vector< TimeTrigger* > m_triggers;

/*---------------------------------------------------------------------------*/

};

/*---------------------------------------------------------------------------*/

} // namespace Server

/*---------------------------------------------------------------------------*/

#endif // _SRV_TRIGGERS_RUNNER_HPP_
